package com.taocyb.bean.uc;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * 注册bean 
 */
public class RegisterBean {
	@Length(min=6, max=20, message="账号由英文字母、数字、中文，长度在6-15字符之内")
	private String loginName; 		// 登陆账号
	
	@NotBlank(message="密码不能为空")
	@Length(min=6, max=15, message="密码长度在6-15位之间")
	private String password; 		// 登陆密码
	
	private String recommender; 	// 推荐人
	
	private Integer sex;		 	// 性别
	
	@NotBlank(message="请输入手机号码")
	private String mobile; 			// 手机号码

	@Email(message="请输入正确的邮箱")
	private String email; 		// 邮箱
	
	@Length(min=6, max=20, message="请输入正确的QQ号码")
	private String qq; 			// QQ

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRecommender() {
		return recommender;
	}

	public void setRecommender(String recommender) {
		this.recommender = recommender;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}
}
